package com.wenda.homeschooedu.biz;

import java.util.List;

import com.wenda.homeschooedu.dao.IHomework;
import com.wenda.homeschooedu.daoimpl.HomeWorkService;
import com.wenda.homeschooedu.model.HomeWork;

public class HomeworkManager {
	IHomework homeworkService;

	public HomeworkManager() {
		homeworkService = new HomeWorkService();
	}

	public List<HomeWork> getAllHomeWorksByClassId(int class_id) {
		return homeworkService.getAllHomeWorksByClassId(class_id);
	}

	public List<HomeWork> getAllHomeWorksByStudentId(int student_id) {
		return homeworkService.getAllHomeWorksByStudentId(student_id);
	}

	public List<HomeWork> getNewHomeWorksByClassId(int class_id,
			int old_homework_id) {
		return homeworkService.getNewHomeWorksByClassId(class_id,
				old_homework_id);
	}

	public List<HomeWork> getNewHomeWorkByStudentId(int student_id,
			int old_homework_id) {
		return homeworkService.getNewHomeWorksByStudentId(student_id,
				old_homework_id);
	}

}
